package edu.neu.mapper;

import edu.neu.pojo.User;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class UserMapperImpl implements UserMapper{
    private SqlSessionTemplate template;

    public void setTemplate(SqlSessionTemplate template) {
        this.template = template;
    }

    @Override
    public List<User> find() {
        UserMapper mapper=template.getMapper(UserMapper.class);
        return mapper.find();
    }
}
